package com.cb.domain.service.system.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cb.core.service.impl.GenericManagerImpl;
import com.cb.domain.model.system.City;
import com.cb.domain.dao.system.CityDAO;
import com.cb.domain.service.system.CityManager;
import com.cb.core.webapp.paging.PagingBean;

@Service
public class CityManagerImpl extends GenericManagerImpl<City, Long> implements CityManager{
	
	@Autowired
	private CityDAO cityDAO;
	
	@Autowired
	public CityManagerImpl(CityDAO cityDAO) {
		super(cityDAO);
	}
	
	/**
	 * {@inheritDoc}
	 */
	public List<City>getByVo(City vo,PagingBean pb){
		return ((CityDAO)genericDAO).getByVo(vo, pb);
	}

	@Override
	public City getCity(String code) {
		// TODO Auto-generated method stub
		return cityDAO.getCity(code);
	}
}
